/* Welcome to Compass.
 * In this file you should write your main styles. (or centralize your imports)
 * Import this file using the following HTML or equivalent:
 * <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
@import "compass/reset";
@import "compass/css3";
@import "compass/layout";

//定义变量
$bg-body: url(../images/bg-body.png);
$bg-white: url(../images/bg-opacity-white.png);
$bg-black: url(../images/bg-opacity-black.png);
$bg-lightblue: url(../images/bg-opacity-lightblue.png);
$color-shadow: #2d4d62;
$color-regular: #d3dedf;
$color-hover: #ffffff;
$color-navhover: #cccccc;
$margin-dio: 10px;
$height-header: 40px;
$height-footer: 40px;

@mixin dio-radius {
  @include border-radius(3px);
  background: $bg-black;
  margin: 10px;
}

@mixin upper-radius {
  @include border-radius(0 0 3px 3px);
  background: $bg-white;
  margin: 0 auto 10px auto;
}

@mixin lower-radius {
  @include border-radius(3px 3px 0 0);
  background: $bg-white;
  margin: 10px auto 0 auto;
}

%input-radius {
  height: 25px;
  width: 82%;
  color: $color-regular;
  @include border-radius(0 3px 3px 0);
  border: none;
  background: $bg-black;
  padding: 5px 5px 5px 45px;
  margin-top: 12px;
}

%dio-chart {
  @include border-radius(3px);
  background: $bg-black;
  margin: 10px;
  float: left;
}

%dio-chart-big {
  @extend %dio-chart;
  width: 54.7%;
}

%dio-chart-bigger {
  @extend %dio-chart-big;

}

%dio-chart-small {
  @extend %dio-chart;
  width: 26.55%;
}

%dio-chart-smaller {
  @extend %dio-chart-small;
}

a {
  color: $color-regular;
  text-decoration: none;
  &:hover {
    color: $color-hover;
  }
}

body {
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-family: "Microsoft YaHei", "SimSun", "Arial Narrow";
  background: $bg-body;
}

button {
  display: block;
  border: none;
  @include dio-radius;
  width: 80px;
  height: 35px;
  color: #fff;
  &:hover {
    background: $bg-white;
  }
  margin-left: 170px;
}

//login style
.login-box {
  position: absolute;
  width: 280px;
  height: 184px;
  left: 50%;
  top: 50%;
  margin-left: -140px;
  margin-top: -92px;
  p {
    display: block;
    height: 30px;
    margin: 12px auto;
  }
}

.input-text {
  @extend %input-radius;

}

.input-icon {
  display: block;
  width: 40px;
  height: 35px;
  background: $bg-black;
  margin-top: -35px;
  @include border-radius(3px 0 0 3px);
  i {
    font-size: 1.2em;
    color: #fff;
    line-height: 38px;
    margin-left: 13px;
  }

}

.input-button {
  width: 45%;
  height: 35px;
  color: #fff;
  @include border-radius(3px);
  border: 1px solid #fff;
  float: left;
  margin: 12px 6px;
  text-align: center;
  background: none;
}

//feature style
header {
  width: 98.8%;
  height: $height-header;
  @include upper-radius;
  a {
    display: inline-block;
    width: auto;
    height: $height-header;
    color: $color-regular;
    line-height: $height-header;
    margin-left: 10px;
    padding: 0 10px;
    img {
      width: 90px;
      height: auto;
      margin-left: 10px;
    }
    i {
      margin-right: 5px;
    }
    &:hover {
      background-color: $bg-black;
      color: $color-hover;
    }
  }
}

.container {
  width: 810 left;
}

.index-container {
  margin: 0px 20px;
}

//side style
.sidebar {
  width: 14%;
  height: 762px;
  float: left;
  @include dio-radius;
}

sidebar1 {
  display: block;
  width: 100%;
  height: 100%;
  margin: $margin-dio;
  float: left;
}

.sidebar1 > li > a, .sidebar2 > li > a {
  display: block;
  width: 100%;
  height: 35px;
  color: $color-regular;
  line-height: 35px;
}

.onlyone > a:hover {
  background: $bg-black;
}

.sidebar1 > li > a > span {
  margin-left: 30px;
}

.sidebar1 > li > a > span > i {
  margin-right: 10px;
}

.sidebar2 > li > a > span {
  margin-left: 65px;
}

.sidebar2 > li > a:hover {
  background: $bg-black;
}

//close the side style

.big-title {
  width: 82.5%;
  margin: 10px;
  color: #fff;
  float: left;
  h1 {
    font-size: 2em;
  }
}

.chart-title {
  width: 97%;
  height: 40px;
  line-height: 40px;
  color: $color-regular;
  padding-left: 20px;
}

.chart1 {
  @extend %dio-chart-bigger;
  height: 444px;
}

.chart4 {
  @extend %dio-chart-big;
  height: 150px;
}

//unuse

.chart2 {
  @extend %dio-chart-smaller;
  height: 212px;
}

.chart3 {
  @extend %dio-chart-small;
  height: 250px;
}

.chart5 {
  @extend %dio-chart-bigger;
  width: 60%;
  height: 490px;

}

.chart6 {
  @extend %dio-chart-bigger;
  width: 37%;
  height: 250px;
}

.chart7 {
  @extend %dio-chart-bigger;
  width: 80%;
  height: 290px;
}

.chart8 {
  @extend %dio-chart-bigger;
  width: 80%;
  height: 250px;
}

table {
  width: 96%;
  color: #fff;
  margin: 10px 20px;
  line-height: 35px;
}

.table-title {
  font-weight: bold;
}

.single-row {
  background: $bg-black;
  a {
    margin-left: 1em;
  }
}

.double-row {
  a {
    margin-left: 1em;
  }
  &:hover {
    background: $bg-black;
  }
}

.error-height {
  display: block;
  width: 100%;
  cursor: pointer;
  li {
    height: 40px;
    line-height: 40px;
    padding-left: 20px;
    color: #fff;
    i.icon-remove-sign {
      color: red;
      margin-right: 10px;
    }
    i.icon-warning-sign {
      color: yellow;
      margin-right: 10px;
    }
  }
}

.dio-box {
  margin: 30px auto auto 30px;
  color: #fff;
}

.checkbox {
  margin: 10px;
  background: $bg-black;
}

footer {
  width: 98.8%;
  height: $height-footer;
  @include lower-radius;
  @include sticky-footer(45px);
  float: left;
  margin-left: 15px;
  text-align: center;
  line-height: $height-footer;
  font-size: 0.9em;
  color: $color-regular;
}

